.class public abstract Lnbisdk/qc;
.super Ljava/lang/Object;

# interfaces
.implements Lcom/navbuilder/nb/c;
.implements Lnbisdk/rj;


# annotations
.annotation system Ldalvik/annotation/MemberClasses;
    value = {
        Lnbisdk/qc$a;
    }
.end annotation


# instance fields
.field protected d:Lnbisdk/ov;

.field protected jh:Lcom/navbuilder/nb/c;

.field private lock:Ljava/lang/Object;

.field private mz:Lnbisdk/hj;

.field private qU:Lnbisdk/jz;

.field protected zC:Ljava/util/Vector;

.field private zD:Lnbisdk/dg;

.field private zE:B

.field private zF:Ljava/lang/Thread;

.field private zG:J

.field protected zH:J

.field protected zI:Z

.field private zJ:Lnbisdk/le;

.field private zK:Lnbisdk/fq;

.field private zL:Lnbisdk/ax;

.field private zM:Ljava/lang/String;


# direct methods
.method protected constructor <init>(Lnbisdk/fq;Lnbisdk/hj;Z)V
    .locals 4

    const-wide/16 v2, 0x0

    const/4 v1, 0x0

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    new-instance v0, Ljava/util/Vector;

    invoke-direct {v0}, Ljava/util/Vector;-><init>()V

    iput-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    iput-byte v1, p0, Lnbisdk/qc;->zE:B

    iput-wide v2, p0, Lnbisdk/qc;->zG:J

    iput-wide v2, p0, Lnbisdk/qc;->zH:J

    iput-boolean v1, p0, Lnbisdk/qc;->zI:Z

    iput-object p0, p0, Lnbisdk/qc;->jh:Lcom/navbuilder/nb/c;

    new-instance v0, Ljava/lang/Object;

    invoke-direct {v0}, Ljava/lang/Object;-><init>()V

    iput-object v0, p0, Lnbisdk/qc;->lock:Ljava/lang/Object;

    const-wide/high16 v0, 0x4

    invoke-static {v0, v1}, Lnbisdk/pn;->k(J)Lnbisdk/ov;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/qc;->d:Lnbisdk/ov;

    iput-object p1, p0, Lnbisdk/qc;->zK:Lnbisdk/fq;

    iput-object p2, p0, Lnbisdk/qc;->mz:Lnbisdk/hj;

    invoke-interface {p2}, Lnbisdk/hj;->dh()Lnbisdk/le;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    new-instance v0, Lnbisdk/ax;

    iget-object v1, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    invoke-direct {v0, v1, p3}, Lnbisdk/ax;-><init>(Lnbisdk/le;Z)V

    iput-object v0, p0, Lnbisdk/qc;->zL:Lnbisdk/ax;

    iget-object v0, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    invoke-virtual {v0}, Lnbisdk/le;->hS()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/qc;->zM:Ljava/lang/String;

    return-void
.end method

.method private Q(Z)V
    .locals 2

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "assert in non-debug build"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    :try_start_0
    invoke-virtual {p0}, Ljava/lang/Object;->notify()V
    :try_end_0
    .catch Ljava/lang/IllegalMonitorStateException; {:try_start_0 .. :try_end_0} :catch_0

    new-instance v0, Ljava/lang/IllegalMonitorStateException;

    const-string v1, "want network unlocked"

    invoke-direct {v0, v1}, Ljava/lang/IllegalMonitorStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :catch_0
    move-exception v0

    return-void
.end method

.method static synthetic a(Lnbisdk/qc;)Ljava/lang/Thread;
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->zF:Ljava/lang/Thread;

    return-object v0
.end method

.method private br(I)B
    .locals 4

    move v0, p1

    move-object v1, p0

    :goto_0
    const/16 v2, 0xff

    if-le v0, v2, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "all IDs are in use"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    iget-object v2, v1, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v2}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v2

    :cond_1
    invoke-interface {v2}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v3

    if-eqz v3, :cond_2

    invoke-interface {v2}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lnbisdk/dz;

    iget-byte v3, v1, Lnbisdk/qc;->zE:B

    invoke-virtual {p0, v3}, Lnbisdk/dz;->b(B)Z

    move-result v3

    if-eqz v3, :cond_1

    invoke-direct {v1}, Lnbisdk/qc;->lh()V

    add-int/lit8 v0, v0, 0x1

    goto :goto_0

    :cond_2
    iget-byte v0, v1, Lnbisdk/qc;->zE:B

    invoke-direct {v1}, Lnbisdk/qc;->lh()V

    return v0
.end method

.method private f(Lnbisdk/dy;)Lnbisdk/dz;
    .locals 6

    const/4 v5, 0x0

    iget-object v0, p0, Lnbisdk/qc;->lock:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    invoke-virtual {p1}, Lnbisdk/dy;->dG()Lnbisdk/dz;

    move-result-object v1

    if-eqz v1, :cond_1

    invoke-virtual {p1}, Lnbisdk/dy;->dG()Lnbisdk/dz;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/dz;->dI()Ljava/util/Vector;

    move-result-object v1

    if-eqz v1, :cond_0

    invoke-virtual {p1}, Lnbisdk/dy;->dG()Lnbisdk/dz;

    move-result-object v1

    monitor-exit v0

    move-object v0, v1

    :goto_0
    return-object v0

    :cond_0
    monitor-exit v0

    move-object v0, v5

    goto :goto_0

    :cond_1
    iget-object v1, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v1}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v1

    :cond_2
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v2

    if-eqz v2, :cond_4

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object p0

    check-cast p0, Lnbisdk/dz;

    invoke-virtual {p0}, Lnbisdk/dz;->getTarget()Ljava/lang/String;

    move-result-object v2

    new-instance v3, Ljava/lang/String;

    invoke-virtual {p1}, Lnbisdk/dy;->dv()[B

    move-result-object v4

    invoke-direct {v3, v4}, Ljava/lang/String;-><init>([B)V

    invoke-virtual {v2, v3}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v2

    if-eqz v2, :cond_3

    invoke-virtual {p0}, Lnbisdk/dz;->dK()B

    move-result v2

    invoke-virtual {p1}, Lnbisdk/dy;->dE()B

    move-result v3

    if-ne v2, v3, :cond_3

    const/4 v2, 0x1

    :goto_1
    if-eqz v2, :cond_2

    invoke-virtual {p1, p0}, Lnbisdk/dy;->e(Lnbisdk/dz;)V

    monitor-exit v0

    move-object v0, p0

    goto :goto_0

    :cond_3
    const/4 v2, 0x0

    goto :goto_1

    :cond_4
    monitor-exit v0

    move-object v0, v5

    goto :goto_0

    :catchall_0
    move-exception v1

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v1
.end method

.method private g(Lnbisdk/dy;)Lnbisdk/dz;
    .locals 8

    const/4 v7, 0x0

    iget-object v1, p0, Lnbisdk/qc;->lock:Ljava/lang/Object;

    monitor-enter v1

    :try_start_0
    invoke-direct {p0, p1}, Lnbisdk/qc;->f(Lnbisdk/dy;)Lnbisdk/dz;

    move-result-object v2

    if-eqz v2, :cond_1

    invoke-virtual {p0, v2}, Lnbisdk/qc;->i(Lnbisdk/dz;)V

    :cond_0
    :goto_0
    monitor-exit v1

    return-object v2

    :cond_1
    invoke-virtual {p1}, Lnbisdk/dy;->dA()Lnbisdk/fk;

    move-result-object v0

    sget-boolean v3, Lnbisdk/bk;->DEBUG:Z

    if-eqz v3, :cond_2

    new-instance v3, Ljava/lang/StringBuilder;

    invoke-direct {v3}, Ljava/lang/StringBuilder;-><init>()V

    const-string v4, "iden="

    invoke-virtual {v3, v4}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v3

    invoke-virtual {v3}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v3

    const-wide/high16 v4, 0x2000

    const/16 v6, 0x8

    invoke-static {v3, v4, v5, v6}, Lnbisdk/pn;->a(Ljava/lang/String;JB)V

    :cond_2
    const-string v3, "client-guid"

    invoke-virtual {v0, v3}, Lnbisdk/fk;->U(Ljava/lang/String;)Z

    move-result v3

    if-eqz v3, :cond_4

    const-string v3, "client-guid"

    invoke-virtual {v0, v3}, Lnbisdk/fk;->e(Ljava/lang/String;)[B

    move-result-object v3

    :goto_1
    const-string v4, "error"

    invoke-static {v0, v4}, Lnbisdk/ij$a;->c(Lnbisdk/fk;Ljava/lang/String;)Lnbisdk/fk;

    move-result-object v4

    if-eqz v4, :cond_7

    invoke-static {v4}, Lcom/navbuilder/nb/NBException;->getReplyErrorCode(Lnbisdk/fk;)I

    move-result v3

    const/16 v0, 0xfce

    if-eq v3, v0, :cond_3

    const/16 v0, 0xfba

    if-eq v3, v0, :cond_3

    const/16 v0, 0xfc8

    if-ne v3, v0, :cond_6

    :cond_3
    :goto_2
    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-eqz v0, :cond_5

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    const/4 v5, 0x0

    invoke-virtual {v0, v5}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/dz;

    invoke-virtual {p0, v0}, Lnbisdk/qc;->i(Lnbisdk/dz;)V

    new-instance v5, Lcom/navbuilder/nb/NBException;

    invoke-direct {v5, v3}, Lcom/navbuilder/nb/NBException;-><init>(I)V

    invoke-virtual {v0, v5}, Lnbisdk/dz;->c(Lcom/navbuilder/nb/NBException;)V

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit v1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw v0

    :cond_4
    move-object v3, v7

    goto :goto_1

    :cond_5
    :try_start_1
    invoke-virtual {p0}, Lnbisdk/qc;->shutdown()V

    :cond_6
    new-instance v0, Lcom/navbuilder/nb/e;

    const-string v3, "code"

    invoke-static {v4, v3}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    const-string v5, "description"

    invoke-static {v4, v5}, Lnbisdk/ok;->j(Lnbisdk/fk;Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    invoke-direct {v0, v3, v4}, Lcom/navbuilder/nb/e;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    :goto_3
    if-eqz v0, :cond_0

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v3

    invoke-virtual {v3, v0}, Lnbisdk/ix;->a(Lcom/navbuilder/nb/e;)V

    goto/16 :goto_0

    :cond_7
    if-eqz v3, :cond_8

    new-instance v0, Lcom/navbuilder/nb/e;

    invoke-direct {v0, v3}, Lcom/navbuilder/nb/e;-><init>([B)V

    iget-object v4, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    invoke-virtual {v4, v3}, Lnbisdk/le;->d([B)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_3

    :cond_8
    move-object v0, v7

    goto :goto_3
.end method

.method private i(Lcom/navbuilder/nb/NBException;)V
    .locals 2

    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    invoke-virtual {v0, p1}, Lnbisdk/dg;->g(Lcom/navbuilder/nb/NBException;)V

    invoke-virtual {p0, p1}, Lnbisdk/qc;->f(Lcom/navbuilder/nb/NBException;)V

    :cond_0
    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    if-eqz v0, :cond_1

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "connEnd didn\'t close conn"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_1
    return-void
.end method

.method private j(Lcom/navbuilder/nb/NBException;)V
    .locals 3

    invoke-direct {p0, p1}, Lnbisdk/qc;->i(Lcom/navbuilder/nb/NBException;)V

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    invoke-virtual {p1}, Lcom/navbuilder/nb/NBException;->hasInnerException()Z

    move-result v0

    if-eqz v0, :cond_1

    iget-object v0, p0, Lnbisdk/qc;->d:Lnbisdk/ov;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Connection error: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {p1}, Lcom/navbuilder/nb/NBException;->getInnerException()Ljava/lang/Exception;

    move-result-object v2

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/ov;->az(Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    iget-object v0, p0, Lnbisdk/qc;->d:Lnbisdk/ov;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Connection error: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/ov;->az(Ljava/lang/String;)V

    goto :goto_0
.end method

.method private le()V
    .locals 1

    const/4 v0, 0x1

    iput-boolean v0, p0, Lnbisdk/qc;->zI:Z

    invoke-direct {p0}, Lnbisdk/qc;->lg()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Lnbisdk/qc$a;

    invoke-direct {v0, p0}, Lnbisdk/qc$a;-><init>(Lnbisdk/qc;)V

    iput-object v0, p0, Lnbisdk/qc;->zF:Ljava/lang/Thread;

    iget-object v0, p0, Lnbisdk/qc;->zF:Ljava/lang/Thread;

    invoke-virtual {v0}, Ljava/lang/Thread;->start()V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->gS()V

    :goto_0
    return-void

    :cond_0
    invoke-virtual {p0}, Ljava/lang/Object;->notify()V

    goto :goto_0
.end method

.method private lf()V
    .locals 1

    invoke-virtual {p0}, Ljava/lang/Object;->notify()V

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/qc;->zF:Ljava/lang/Thread;

    return-void
.end method

.method private lg()Z
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->zF:Ljava/lang/Thread;

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method private lh()V
    .locals 2

    iget-byte v0, p0, Lnbisdk/qc;->zE:B

    add-int/lit8 v0, v0, 0x1

    rem-int/lit16 v0, v0, 0xff

    int-to-byte v0, v0

    iput-byte v0, p0, Lnbisdk/qc;->zE:B

    iget-byte v0, p0, Lnbisdk/qc;->zE:B

    const/4 v1, -0x1

    if-ne v0, v1, :cond_0

    const/4 v0, 0x0

    iput-byte v0, p0, Lnbisdk/qc;->zE:B

    :cond_0
    return-void
.end method


# virtual methods
.method public final a(Lcom/navbuilder/nb/e;)V
    .locals 0

    return-void
.end method

.method public final a(Ljava/lang/Throwable;)V
    .locals 3

    new-instance v0, Lcom/navbuilder/nb/NBException;

    const/16 v1, 0x7d0

    invoke-virtual {p1}, Ljava/lang/Throwable;->getMessage()Ljava/lang/String;

    move-result-object v2

    invoke-direct {v0, v1, v2}, Lcom/navbuilder/nb/NBException;-><init>(ILjava/lang/String;)V

    invoke-direct {p0, v0}, Lnbisdk/qc;->j(Lcom/navbuilder/nb/NBException;)V

    invoke-direct {p0}, Lnbisdk/qc;->lf()V

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0, p1}, Lnbisdk/ix;->a(Ljava/lang/Throwable;)V

    return-void
.end method

.method public final aK(Ljava/lang/String;)I
    .locals 2

    const/16 v1, 0x1400

    if-nez p1, :cond_0

    move v0, v1

    :goto_0
    return v0

    :cond_0
    const-string v0, "nav"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    sget-boolean v0, Lnbisdk/bk;->cF:Z

    if-eqz v0, :cond_1

    move v0, v1

    goto :goto_0

    :cond_1
    const/16 v0, 0x5c00

    goto :goto_0

    :cond_2
    const-string v0, "map"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_4

    sget-boolean v0, Lnbisdk/bk;->cF:Z

    if-eqz v0, :cond_3

    move v0, v1

    goto :goto_0

    :cond_3
    const/16 v0, 0x1800

    goto :goto_0

    :cond_4
    const-string v0, "vector-tile"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_5

    const/16 v0, 0x5000

    goto :goto_0

    :cond_5
    const-string v0, "proxpoi"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_6

    const/16 v0, 0xc00

    goto :goto_0

    :cond_6
    const-string v0, "sync-places-status"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_7

    const/16 v0, 0x200

    goto :goto_0

    :cond_7
    const-string v0, "traffic-notify"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_8

    move v0, v1

    goto :goto_0

    :cond_8
    const-string v0, "fileset-status"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_9

    const/16 v0, 0x100

    goto :goto_0

    :cond_9
    const-string v0, "message-status"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_a

    const/16 v0, 0x40

    goto :goto_0

    :cond_a
    const-string v0, "message"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_b

    const/16 v0, 0x400

    goto :goto_0

    :cond_b
    const-string v0, "fileset-download"

    invoke-virtual {p1, v0}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_d

    sget-boolean v0, Lnbisdk/bk;->cF:Z

    if-eqz v0, :cond_c

    move v0, v1

    goto :goto_0

    :cond_c
    const/16 v0, 0x2800

    goto :goto_0

    :cond_d
    move v0, v1

    goto/16 :goto_0
.end method

.method public final b(Lcom/navbuilder/nb/NBException;)V
    .locals 3

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    new-instance v1, Ljava/util/Vector;

    invoke-direct {v1}, Ljava/util/Vector;-><init>()V

    iput-object v1, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_1

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/dz;

    invoke-virtual {v0}, Lnbisdk/dz;->dL()Z

    move-result v2

    if-eqz v2, :cond_0

    invoke-virtual {v0}, Lnbisdk/dz;->dM()V

    invoke-virtual {v0, p1}, Lnbisdk/dz;->b(Lcom/navbuilder/nb/NBException;)V

    goto :goto_0

    :cond_0
    iget-object v2, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v2, v0}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    goto :goto_0

    :cond_1
    return-void
.end method

.method public bo()V
    .locals 2

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->isEmpty()Z

    move-result v0

    if-nez v0, :cond_0

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "conn closing with active reqs"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_0
    return-void
.end method

.method public final cm()Lnbisdk/qv;
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->zK:Lnbisdk/fq;

    invoke-interface {v0}, Lnbisdk/fq;->cm()Lnbisdk/qv;

    move-result-object v0

    return-object v0
.end method

.method public final d(Lnbisdk/dy;)V
    .locals 2

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lnbisdk/qc;->Q(Z)V

    :cond_0
    invoke-direct {p0, p1}, Lnbisdk/qc;->g(Lnbisdk/dy;)Lnbisdk/dz;

    move-result-object v0

    if-eqz v0, :cond_1

    invoke-virtual {v0, p1}, Lnbisdk/dz;->b(Lnbisdk/dy;)V

    :cond_1
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/qc;->zH:J

    return-void
.end method

.method public final dh()Lnbisdk/le;
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    return-object v0
.end method

.method public final di()Ljava/io/InputStream;
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->mz:Lnbisdk/hj;

    invoke-interface {v0}, Lnbisdk/hj;->di()Ljava/io/InputStream;

    move-result-object v0

    return-object v0
.end method

.method public final e(Lnbisdk/dy;)V
    .locals 2

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lnbisdk/qc;->Q(Z)V

    :cond_0
    monitor-enter p0

    :try_start_0
    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/qc;->zH:J

    invoke-direct {p0, p1}, Lnbisdk/qc;->f(Lnbisdk/dy;)Lnbisdk/dz;

    move-result-object v0

    monitor-exit p0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    if-eqz v0, :cond_1

    invoke-virtual {v0, p1}, Lnbisdk/dz;->a(Lnbisdk/dy;)V

    :cond_1
    return-void

    :catchall_0
    move-exception v0

    :try_start_1
    monitor-exit p0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v0
.end method

.method protected eA()V
    .locals 5

    const/4 v4, 0x0

    move v1, v4

    :goto_0
    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->size()I

    move-result v0

    if-ge v1, v0, :cond_2

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0, v1}, Ljava/util/Vector;->elementAt(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/dz;

    iget-wide v2, p0, Lnbisdk/qc;->zH:J

    invoke-virtual {v0, v2, v3}, Lnbisdk/dz;->e(J)Z

    move-result v0

    if-eqz v0, :cond_1

    const/4 v0, 0x1

    :goto_1
    if-eqz v0, :cond_0

    new-instance v0, Lcom/navbuilder/nb/NBException;

    const/16 v1, 0x7d2

    invoke-direct {v0, v1}, Lcom/navbuilder/nb/NBException;-><init>(I)V

    invoke-direct {p0, v0}, Lnbisdk/qc;->j(Lcom/navbuilder/nb/NBException;)V

    :cond_0
    return-void

    :cond_1
    add-int/lit8 v0, v1, 0x1

    move v1, v0

    goto :goto_0

    :cond_2
    move v0, v4

    goto :goto_1
.end method

.method protected declared-synchronized ey()V
    .locals 5

    const/4 v4, 0x0

    monitor-enter p0

    const/4 v0, 0x0

    :try_start_0
    iput-boolean v0, p0, Lnbisdk/qc;->zI:Z

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_4

    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    if-eqz v0, :cond_3

    invoke-virtual {p0}, Lnbisdk/qc;->ld()V

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iget-wide v2, p0, Lnbisdk/qc;->zG:J

    sub-long/2addr v0, v2

    const-wide/32 v2, 0xea60

    cmp-long v0, v0, v2

    if-lez v0, :cond_2

    const/4 v0, 0x1

    :goto_0
    if-eqz v0, :cond_0

    const/4 v0, 0x0

    invoke-direct {p0, v0}, Lnbisdk/qc;->i(Lcom/navbuilder/nb/NBException;)V

    :cond_0
    :goto_1
    iget-boolean v0, p0, Lnbisdk/qc;->zI:Z

    if-eqz v0, :cond_1

    invoke-virtual {p0}, Lnbisdk/qc;->ey()V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :cond_1
    :goto_2
    monitor-exit p0

    return-void

    :cond_2
    move v0, v4

    goto :goto_0

    :cond_3
    :try_start_1
    invoke-direct {p0}, Lnbisdk/qc;->lg()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-direct {p0}, Lnbisdk/qc;->lf()V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_1 .. :try_end_1} :catch_0

    goto :goto_1

    :catch_0
    move-exception v0

    :try_start_2
    new-instance v1, Lcom/navbuilder/nb/NBException;

    const/16 v2, 0x7d0

    invoke-direct {v1, v2, v0}, Lcom/navbuilder/nb/NBException;-><init>(ILjava/lang/Exception;)V

    invoke-direct {p0, v1}, Lnbisdk/qc;->j(Lcom/navbuilder/nb/NBException;)V

    sget-boolean v1, Lnbisdk/bk;->cG:Z

    if-eqz v1, :cond_1

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "Exception caught: "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v0}, Ljava/lang/Exception;->getMessage()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "triage()"

    const-string v2, "TCPNetwork.java"

    const/16 v3, 0x1c4

    invoke-static {v0, v1, v2, v3}, Lnbisdk/ef;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    goto :goto_2

    :catchall_0
    move-exception v0

    monitor-exit p0

    throw v0

    :cond_4
    :try_start_3
    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    if-nez v0, :cond_9

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_6

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v1

    :cond_5
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_7

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/dz;

    invoke-virtual {v0}, Lnbisdk/dz;->dL()Z

    move-result v0

    if-nez v0, :cond_5

    :cond_6
    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    if-eqz v0, :cond_8

    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "connection already open"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_7
    new-instance v0, Ljava/lang/IllegalStateException;

    const-string v1, "no non-pending requests"

    invoke-direct {v0, v1}, Ljava/lang/IllegalStateException;-><init>(Ljava/lang/String;)V

    throw v0

    :cond_8
    const-wide/16 v0, 0x0

    iput-wide v0, p0, Lnbisdk/qc;->zH:J

    new-instance v0, Lnbisdk/dg;

    invoke-direct {v0, p0}, Lnbisdk/dg;-><init>(Lnbisdk/rj;)V

    iput-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    iget-object v1, p0, Lnbisdk/qc;->jh:Lcom/navbuilder/nb/c;

    invoke-virtual {v0, v1}, Lnbisdk/dg;->a(Lcom/navbuilder/nb/c;)V

    invoke-direct {p0}, Lnbisdk/qc;->le()V
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_3 .. :try_end_3} :catch_0

    :cond_9
    :try_start_4
    invoke-virtual {p0}, Lnbisdk/qc;->ez()V
    :try_end_4
    .catchall {:try_start_4 .. :try_end_4} :catchall_0
    .catch Lnbisdk/rp; {:try_start_4 .. :try_end_4} :catch_1
    .catch Ljava/lang/Exception; {:try_start_4 .. :try_end_4} :catch_0

    :goto_3
    :try_start_5
    invoke-virtual {p0}, Lnbisdk/qc;->eA()V

    goto/16 :goto_1

    :catch_1
    move-exception v0

    new-instance v1, Lcom/navbuilder/nb/NBException;

    const/16 v2, 0x7d0

    invoke-direct {v1, v2, v0}, Lcom/navbuilder/nb/NBException;-><init>(ILjava/lang/Exception;)V

    invoke-direct {p0, v1}, Lnbisdk/qc;->j(Lcom/navbuilder/nb/NBException;)V
    :try_end_5
    .catchall {:try_start_5 .. :try_end_5} :catchall_0
    .catch Ljava/lang/Exception; {:try_start_5 .. :try_end_5} :catch_0

    goto :goto_3
.end method

.method protected ez()V
    .locals 6
    .annotation system Ldalvik/annotation/Throws;
        value = {
            Lnbisdk/rp;
        }
    .end annotation

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->elements()Ljava/util/Enumeration;

    move-result-object v1

    :cond_0
    :goto_0
    invoke-interface {v1}, Ljava/util/Enumeration;->hasMoreElements()Z

    move-result v0

    if-eqz v0, :cond_2

    invoke-interface {v1}, Ljava/util/Enumeration;->nextElement()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lnbisdk/dz;

    invoke-virtual {v0}, Lnbisdk/dz;->dL()Z

    move-result v2

    if-nez v2, :cond_0

    :try_start_0
    iget-object v2, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    invoke-virtual {v0, v2}, Lnbisdk/dz;->a(Lnbisdk/ms;)V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    :goto_1
    sget-boolean v2, Lnbisdk/bk;->cG:Z

    if-eqz v2, :cond_1

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "sent: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v0}, Lnbisdk/dz;->getTarget()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v2

    const-string v3, "triageOutput"

    const-string v4, "TCPNetwork.java"

    const/16 v5, 0x173

    invoke-static {v2, v3, v4, v5}, Lnbisdk/ef;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V

    :cond_1
    invoke-virtual {v0}, Lnbisdk/dz;->dN()V

    goto :goto_0

    :catch_0
    move-exception v2

    new-instance v3, Lcom/navbuilder/nb/NBException;

    const/16 v4, 0x7d0

    invoke-direct {v3, v4, v2}, Lcom/navbuilder/nb/NBException;-><init>(ILjava/lang/Exception;)V

    invoke-virtual {v0, v3}, Lnbisdk/dz;->c(Lcom/navbuilder/nb/NBException;)V

    invoke-virtual {p0, v0}, Lnbisdk/qc;->i(Lnbisdk/dz;)V

    goto :goto_1

    :cond_2
    return-void
.end method

.method public f(Lcom/navbuilder/nb/NBException;)V
    .locals 5

    const/4 v4, 0x0

    sget-boolean v0, Lnbisdk/bk;->DEBUG:Z

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/qc;->d:Lnbisdk/ov;

    new-instance v1, Ljava/lang/StringBuilder;

    invoke-direct {v1}, Ljava/lang/StringBuilder;-><init>()V

    const-string v2, "connection ending, "

    invoke-virtual {v1, v2}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1, p1}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v1

    invoke-virtual {v1}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Lnbisdk/ov;->info(Ljava/lang/String;)V

    :cond_0
    if-nez p1, :cond_2

    :try_start_0
    invoke-virtual {p0}, Lnbisdk/qc;->bo()V

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_1

    const-string v0, "finished"

    const-string v1, "onConnectionEnd"

    const-string v2, "TCPNetwork.java"

    const/16 v3, 0x14d

    invoke-static {v0, v1, v2, v3}, Lnbisdk/ef;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    :cond_1
    :goto_0
    iput-object v4, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v0

    invoke-virtual {v0}, Lnbisdk/ix;->bo()V

    return-void

    :cond_2
    :try_start_1
    invoke-virtual {p0, p1}, Lnbisdk/qc;->b(Lcom/navbuilder/nb/NBException;)V

    sget-boolean v0, Lnbisdk/bk;->cG:Z

    if-eqz v0, :cond_1

    new-instance v0, Ljava/lang/StringBuilder;

    invoke-direct {v0}, Ljava/lang/StringBuilder;-><init>()V

    const-string v1, "failed (errorCode="

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {p1}, Lcom/navbuilder/nb/NBException;->getErrorCode()I

    move-result v1

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(I)Ljava/lang/StringBuilder;

    move-result-object v0

    const-string v1, ")"

    invoke-virtual {v0, v1}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    const-string v1, "onConnectionEnd"

    const-string v2, "TCPNetwork.java"

    const/16 v3, 0x152

    invoke-static {v0, v1, v2, v3}, Lnbisdk/ef;->a(Ljava/lang/String;Ljava/lang/String;Ljava/lang/String;I)V
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    goto :goto_0

    :catchall_0
    move-exception v0

    iput-object v4, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    invoke-static {}, Lnbisdk/ix;->gN()Lnbisdk/ix;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/ix;->bo()V

    throw v0
.end method

.method public final declared-synchronized g(Lnbisdk/dz;)V
    .locals 3

    monitor-enter p0

    :try_start_0
    iget-object v0, p0, Lnbisdk/qc;->lock:Ljava/lang/Object;

    monitor-enter v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_1

    const/4 v1, 0x0

    :try_start_1
    invoke-direct {p0, v1}, Lnbisdk/qc;->br(I)B

    move-result v1

    invoke-virtual {p1, v1}, Lnbisdk/dz;->a(B)V

    iget-object v1, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v1, p1}, Ljava/util/Vector;->addElement(Ljava/lang/Object;)V

    iget-object v1, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {p1, v1}, Lnbisdk/dz;->c(Ljava/util/Vector;)V

    const-wide/16 v1, 0x0

    iput-wide v1, p0, Lnbisdk/qc;->zG:J

    invoke-direct {p0}, Lnbisdk/qc;->le()V

    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    monitor-exit p0

    return-void

    :catchall_0
    move-exception v1

    :try_start_2
    monitor-exit v0
    :try_end_2
    .catchall {:try_start_2 .. :try_end_2} :catchall_0

    :try_start_3
    throw v1
    :try_end_3
    .catchall {:try_start_3 .. :try_end_3} :catchall_1

    :catchall_1
    move-exception v0

    monitor-exit p0

    throw v0
.end method

.method public final h(Lnbisdk/dz;)V
    .locals 2

    iget-object v0, p0, Lnbisdk/qc;->lock:Ljava/lang/Object;

    monitor-enter v0

    :try_start_0
    invoke-virtual {p0, p1}, Lnbisdk/qc;->i(Lnbisdk/dz;)V

    monitor-exit v0
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    invoke-virtual {p1}, Lnbisdk/dz;->onCancel()V

    return-void

    :catchall_0
    move-exception v1

    :try_start_1
    monitor-exit v0
    :try_end_1
    .catchall {:try_start_1 .. :try_end_1} :catchall_0

    throw v1
.end method

.method public final i(Ljava/lang/String;)V
    .locals 0

    return-void
.end method

.method protected final i(Lnbisdk/dz;)V
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0, p1}, Ljava/util/Vector;->removeElement(Ljava/lang/Object;)Z

    const/4 v0, 0x0

    invoke-virtual {p1, v0}, Lnbisdk/dz;->c(Ljava/util/Vector;)V

    iget-object v0, p0, Lnbisdk/qc;->zC:Ljava/util/Vector;

    invoke-virtual {v0}, Ljava/util/Vector;->isEmpty()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lnbisdk/qc;->ld()V

    :cond_0
    return-void
.end method

.method public final kP()Lnbisdk/jz;
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->qU:Lnbisdk/jz;

    if-nez v0, :cond_0

    invoke-interface {p0}, Lnbisdk/rj;->di()Ljava/io/InputStream;

    move-result-object v0

    invoke-static {v0}, Lnbisdk/fm;->a(Ljava/io/InputStream;)Lnbisdk/jz;

    move-result-object v0

    iput-object v0, p0, Lnbisdk/qc;->qU:Lnbisdk/jz;

    :cond_0
    iget-object v0, p0, Lnbisdk/qc;->qU:Lnbisdk/jz;

    return-object v0
.end method

.method public final kQ()[B
    .locals 4

    new-instance v0, Ljava/io/ByteArrayOutputStream;

    invoke-direct {v0}, Ljava/io/ByteArrayOutputStream;-><init>()V

    :try_start_0
    invoke-virtual {p0}, Lnbisdk/qc;->kP()Lnbisdk/jz;

    move-result-object v1

    invoke-virtual {v1}, Lnbisdk/jz;->hw()[B

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/ByteArrayOutputStream;->write([B)V

    invoke-virtual {p0}, Lnbisdk/qc;->kP()Lnbisdk/jz;

    move-result-object v1

    iget-object v2, p0, Lnbisdk/qc;->zM:Ljava/lang/String;

    iget-object v3, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    invoke-virtual {v3}, Lnbisdk/le;->hS()Ljava/lang/String;

    move-result-object v3

    if-eq v2, v3, :cond_0

    iget-object v2, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    invoke-virtual {v2}, Lnbisdk/le;->hS()Ljava/lang/String;

    move-result-object v2

    iput-object v2, p0, Lnbisdk/qc;->zM:Ljava/lang/String;

    iget-object v2, p0, Lnbisdk/qc;->zL:Lnbisdk/ax;

    iget-object v3, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    invoke-virtual {v2, v3}, Lnbisdk/ax;->a(Lnbisdk/le;)V

    :cond_0
    iget-object v2, p0, Lnbisdk/qc;->mz:Lnbisdk/hj;

    iget-object v3, p0, Lnbisdk/qc;->zJ:Lnbisdk/le;

    invoke-static {v2, v3}, Lnbisdk/dg;->a(Lnbisdk/hj;Lnbisdk/le;)Lnbisdk/fk;

    move-result-object v2

    invoke-static {v1, v2}, Lnbisdk/mm;->a(Lnbisdk/jz;Lnbisdk/fk;)[B

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/io/ByteArrayOutputStream;->write([B)V
    :try_end_0
    .catch Ljava/io/IOException; {:try_start_0 .. :try_end_0} :catch_0

    invoke-virtual {v0}, Ljava/io/ByteArrayOutputStream;->toByteArray()[B

    move-result-object v0

    return-object v0

    :catch_0
    move-exception v0

    new-instance v1, Ljava/lang/RuntimeException;

    new-instance v2, Ljava/lang/StringBuilder;

    invoke-direct {v2}, Ljava/lang/StringBuilder;-><init>()V

    const-string v3, "ByteArrayOutputStream IOException: "

    invoke-virtual {v2, v3}, Ljava/lang/StringBuilder;->append(Ljava/lang/String;)Ljava/lang/StringBuilder;

    move-result-object v2

    invoke-virtual {v2, v0}, Ljava/lang/StringBuilder;->append(Ljava/lang/Object;)Ljava/lang/StringBuilder;

    move-result-object v0

    invoke-virtual {v0}, Ljava/lang/StringBuilder;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-direct {v1, v0}, Ljava/lang/RuntimeException;-><init>(Ljava/lang/String;)V

    throw v1
.end method

.method public final kR()Lnbisdk/sl;
    .locals 1

    iget-object v0, p0, Lnbisdk/qc;->zL:Lnbisdk/ax;

    return-object v0
.end method

.method protected final ld()V
    .locals 4

    const-wide/16 v2, 0x0

    iget-wide v0, p0, Lnbisdk/qc;->zG:J

    cmp-long v0, v0, v2

    if-nez v0, :cond_0

    invoke-static {}, Ljava/lang/System;->currentTimeMillis()J

    move-result-wide v0

    iput-wide v0, p0, Lnbisdk/qc;->zG:J

    :cond_0
    iput-wide v2, p0, Lnbisdk/qc;->zH:J

    return-void
.end method

.method public final shutdown()V
    .locals 1

    const/4 v0, 0x0

    iput-object v0, p0, Lnbisdk/qc;->zF:Ljava/lang/Thread;

    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    if-eqz v0, :cond_0

    iget-object v0, p0, Lnbisdk/qc;->zD:Lnbisdk/dg;

    invoke-virtual {v0}, Lnbisdk/dg;->close()V

    :cond_0
    return-void
.end method
